package org.compression.services;

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.model.Book;
import org.model.SearchModel;
import org.model.SelectModel;
import org.model.TNewMagazine;
import org.model.business.Magazine;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;

public interface FileService {

//	public void transformation();

	public	void transformation(SearchModel model);
	public	Object findFileName(String str);
//	public void insertMagazine(TNewMagazine mTNewMagazine);
//	public Object getHighSelect(List<SelectModel> mHigSearch);
	
	
	public Object filedownd(TNewMagazine mTNewMagazine);
	
	
	public Object writeFilePath(MultipartHttpServletRequest request,MultipartFile file,String id) throws Exception;
	Object uploadCover(MultipartHttpServletRequest request, MultipartFile file, String id) throws Exception;
	public void filedowndImage(HttpServletResponse response,String memberId,String magazineId) throws IOException ;
	public void filedowndpdf(HttpServletResponse response, String memberId, String magazineId) throws IOException;
}
